
import React, { Component, Children } from 'react';
import styles from "./index.less"
import { Link } from 'umi';


export default ({ location, children }) => {
    let { pathname } = location;
    return (
        <div>
            <div>
                <div className="content">
                    <div className={`${styles.prodtabs} row`}>
                        <div className={`${pathname == "/support/prod" ? styles.activetab : ""} rowcenter`}>
                            <Link to="/support/prod">产品</Link>
                        </div>
                        <div className={`${pathname == "/support/company" ? styles.activetab : ""} rowcenter`}>
                            <Link to="/support/company">公司</Link>
                        </div>
                    </div>
                </div>

                {
                    children
                }
            </div>
        </div>
    )
}